home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / CH_6.3 / XSGT / SGT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-11  |  1.7 KB  |  51 lines

  1. /*
  2.  * S(ite) G(eometry and) T(opology)
  3.  *
  4.  */
  5.  
  6. #ifndef _SGT_H_
  7. #define    _SGT_H_
  8.  
  9. #include <stdlib.h>
  10. #include <stdio.h>
  11. #include <stdarg.h>
  12. #include <string.h>
  13. #include <math.h>
  14. #include "vora.h"
  15. #include "ip.h"
  16.  
  17.  
  18. /* function prototypes */
  19. /* xsgt.c */
  20. extern void gprintf (FILE * fpOut, char *fmt,...);
  21. extern void fail_alloc (char *str, int code);
  22. extern void exitmess (char *prompt, int status);
  23. extern void usage (char *progname);
  24. extern void skip_n_lines (FILE * file_pointer, int n_lines_to_skip);
  25. extern void main (int argc, char **argv);
  26. #if defined(LINUX)
  27. extern int cmp_root_a (struct kNNShell *t1, struct kNNShell *t2);
  28. #else
  29. extern int cmp_root_a (const void *t1, const void *t2);
  30. #endif
  31. /* anal_gt.c */
  32. extern double p_of_nA (int *idn, unsigned int **a_n, int ns, struct vSite *sa);
  33. extern int a_vs_vPa (struct Pix *dpa, int ns, struct vSite *vsa,
  34.                      double *ma_tdt, double *mva);
  35. extern int eval_sij (float **bs, int ns, struct vSite *sa);
  36. /* gen_dt_i.c */
  37. extern int get_record_size (FILE * file);
  38. extern int get_prm_size (FILE * file);
  39. extern void get_col2_data (FILE * file, int n_parms, float *a,
  40.                            int npts, float *x, float *y, float *sig);
  41. extern void get_col3_data (FILE * file, int n_parms, float *a,
  42.                        int npts, float *x, float *oy, float *y, float *sig);
  43. extern void write_pft_file (FILE * file, float *x, float *y, float *rsd,
  44.                             int n_pts, float *x_fit, float *y_fit, int n_fit,
  45.                             float *parameters, int n_parms, double chisq);
  46. extern void write_adt_file (FILE * file,
  47.            float *x_data, float *y_data, float *acf, int npts, int n_parms);
  48.  
  49.  
  50. #endif /* _SGT_H_ */
  51.